using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace Eamon.MeituanDotnetSDK.model.ddzh.tuangou.tuangouReceiptBatchconsume
{
    /// <summary>
    /// 券码信息列表
    /// </summary>
    public class ReceiptCodeInfo
    {
        /// <summary>
        /// 团购券码，必须未验证
        /// </summary>
        [Required(ErrorMessage = "receiptCode不能为空")]
        [JsonPropertyName("receiptCode")]
        public string ReceiptCode { get; set; }

        /// <summary>
        /// 验券数量，不可多于100个
        /// </summary>
        [Required(ErrorMessage = "count不能为空")]
        [JsonPropertyName("count")]
        public string Count { get; set; }

        public override string ToString()
        {
            return $"ReceiptCodeInfo{{ReceiptCode={ReceiptCode}, Count={Count}}}";
        }
    }
}
